﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace DTO
{
    public class TUKHOAQUANHUYENCollection : List<TUKHOAQUANHUYEN>
    { 
    }
    public class TUKHOAQUANHUYEN
    {
        internal QUANHUYENCollection dsquan;

        internal QUANHUYENCollection Dsquan
        {
            get { return dsquan; }
            set { dsquan = value; }
        }

        private long MaTuKhoaQuanHuyen;

        public long MATUKHOAQUANHUYEN
        {
            get { return MaTuKhoaQuanHuyen; }
            set { MaTuKhoaQuanHuyen = value; }
        }
        private String TuKhoaQuanHuyen;
        [StringLengthValidator(1,500,MessageTemplate="Từ khóa quận huyện phải có ít nhất 1 ký tự")]
        public String TUKHOAQH
        {
            get { return TuKhoaQuanHuyen; }
            set { TuKhoaQuanHuyen = value; }
        }
        private long MaQuanHuyen;

        public long MAQUANHUYEN
        {
            get { return MaQuanHuyen; }
            set { MaQuanHuyen = value; }
        }
        public TUKHOAQUANHUYEN() { dsquan = new QUANHUYENCollection(); }
    }
}
